package org.five;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * Created by Administrator on 2016/3/14 0014.
 */
public class TestMD5 {
    public static void main(String[] args) {
        String s = "@#$3.A32/fda";
        String hex = DigestUtils.md5Hex(DigestUtils.md5Hex(DigestUtils.md5Hex(s)));
        System.out.println(hex);
        if ( DigestUtils.md5Hex(DigestUtils.md5Hex(DigestUtils.md5Hex(s))).equals(hex) ) {
            System.out.println("用户名密码正确");
        }
    }
}
